<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

function func_search_obj() {
	if( CONST_SEARCH_PRODUCT_TYPE == 'autoitem' ) {
		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'product.search.autoitem.class.php');
		$psearchObj = new ProductSearchAutoItemBase();
	} else {
		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'product.search.class.php');
		$psearchObj = new ProductSearchBase();
	}
	
	return $psearchObj;
}
//
?>